<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>设置路径</title>
		<load href="__JS__/menu.js" />
		<load href="__JS__/leftmenubar.js" />
		<load href="__CSS__/header.css" />
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
		<script type="text/JavaScript">
		 $(function(){
	            $('#form1').ajaxForm({
	                //beforeSubmit:  function(){alert("before");},  // pre-submit callback
	                success:       complete,  // post-submit callback
	                error:function(){alert("error");},
	                dataType: 'json'
	            });
	            
	            function complete(data){
	                if (data.status==1)
	                {
	                	window.location='__URL__/classfile/id/{$id}';
	                }else{
	                    $('#result').html(data.info).show();
	                }
	            }
	        });
        </script>
</head>
<body>
<layout name="Auth:header" />
<div class="nowposition">
	当前位置：
	<a href='__APP__/index/index'  class="nowpositionhref">主页</a>>
	<a href='__URL__/index'  class="nowpositionhref">后台管理</a>>
	<a href='__URL__/classdetail'  class="nowpositionhref">教学班管理</a>>
	<a href='__URL__/classfile/id/{$id}'  class="nowpositionhref">作业管理</a>>
	<a href=""  class="nowpositionhref">设置上传文件夹</a>
</div>
<layout name="Auth:leftmenu" />
<div class="savepath">
	<div id='result' align="right" style="width:318px;"></div>
	<div style="position:relative; left:210px;">
		<form  id='form1' method='post' action='__URL__/save_add'>
		设置上传文件夹<input type='text' name='pname'>
		<input type='hidden' name='classid' value={$id}>
		<input type='submit' value='提交'>
		</form>
	</div>
</div>
</body>
</html>